import request from '@/utils/request'

// 查询人事合同列表
export function listStaffContract(query) {
  return request({
    url: '/cld/staffContract/list',
    method: 'get',
    params: query
  })
}


// 查询人事合同列表
export function staffContractStatistics(query) {
  return request({
    url: '/cld/staffContract/staffContractStatistics',
    method: 'get',
    params: query
  })
}

// 查询人事合同详细
export function getStaffContract(staffContractId) {
  return request({
    url: '/cld/staffContract/' + staffContractId,
    method: 'get'
  })
}

// 新增人事合同
export function addStaffContract(data) {
  return request({
    url: '/cld/staffContract',
    method: 'post',
    data: data
  })
}

// 修改人事合同
export function updateStaffContract(data) {
  return request({
    url: '/cld/staffContract',
    method: 'put',
    data: data
  })
}

// 删除人事合同
export function delStaffContract(staffContractId) {
  return request({
    url: '/cld/staffContract/' + staffContractId,
    method: 'delete'
  })
}
